package routers

import (
	"github.com/astaxie/beego"
	"shop/controllers"
	"shop/controllers/admin"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.LoginController{})
	beego.Router("/user", &controllers.UserController{})
	beego.Router("/profile", &controllers.ProfileController{})
	beego.Router("/admin/login", &controllers.AdminLoginController{})
	beego.Router("/admin/reg",&admin.RegController{})
}
